import request from '../../../utils/request.js'

// 新增
export const menuAdd = (data) => {
    return request({
        url: '/menu/add',
        method: 'POST',
        data,
    })
}

// 编辑
export const menuUpdate = (data) => {
    return request({
        url: '/menu/update',
        method: 'POST',
        data,
    })
}

// 删除
export const menuDelete = (data) => {
    return request({
        url: '/menu/delete',
        method: 'POST',
        data,
    })
}

// 列表
export const menuList = (params) => {
    return request({
        url: '/menu/list',
        method: 'GET',
        params,
    })
}
